$(function(){
  $(".userInfo .userName span").text('[ '+getCookie("adminName")+" ]");
  $(".submit")[0].onclick = function(){
    var bookName = $(".bookName").val();
    var bookAutor = $(".bookAutor").val();
    var bookType = $(".bookType").val();
    var bookISBN = $(".bookISBn").val();
    var bookNum = $(".bookNum").val();
    var bookPosition = $(".bookPosition").val();
    var fileInfo = $(".file").val();
    console.log($(".file"));
    // console.log(fileInfo);
    if(bookName=='' || bookAutor=='' || bookType=='' || bookISBN=='' || bookNum =='' 
      || bookPosition =='' || fileInfo ==''){
        alert('请输入完整信息！')
    }
    
  }
})



